<!-- <fieldset>

    <legend>操作选项</legend>
<button data-open='{:url("index")}?member_type=1' data-title="用户会员列表" class='layui-btn layui-btn-sm layui-btn-primary'>用户会员列表</button>
<button data-open='{:url("indexcompany")}?member_type=2' data-title="企业会员列表" class='layui-btn layui-btn-sm layui-btn-primary'>企业会员列表</button>
</fieldset> -->


<fieldset>

    <legend>条件搜索</legend>

    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">会员名称</label>
            <div class="layui-input-inline">
                    {if $member_type == 1 }
                       <input name="username" value="{$Think.get.username|default=''}" placeholder="请输入会员姓名" class="layui-input">
                    {else}
                        <input name="company_name" value="{$Think.get.username|default=''}" placeholder="请输入会员姓名" class="layui-input">
                    {/if}
                
            </div>
        </div>
		
<!-- 		<div class="layui-form-item layui-inline">
		    <label class="layui-form-label">所属公司</label>
		    <div class="layui-input-inline">
		        <input name="company_name" value="{$Think.get.company_name|default=''}" placeholder="请输入公司名称" class="layui-input">
		    </div>
		</div> -->
		
<!--         <div class="layui-form-item layui-inline">
            <label class="layui-form-label">会员类型</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="member_type">
                    {foreach [''=>'-- 全部状态 --','1'=>'个人','2'=>'企业'] as $k=>$v}
                    {eq name='Think.get.status' value='$k.""'}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/eq}
                    {/foreach}
                </select>
            </div>
        </div> -->

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">套餐状态</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="status">
                    {foreach [''=>'-- 全部状态 --','1'=>'已过期','2'=>'未过期'] as $k=>$v}
                    {eq name='Think.get.status' value='$k.""'}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/eq}
                    {/foreach}
                </select>
            </div>
        </div>

       <div class="layui-form-item layui-inline">
          <label class="layui-form-label">添加时间</label>
          <div class="layui-input-inline">
      		  <input type="text" class="layui-input" id="create_at_first" name="create_at_first" value="{$Think.get.create_at_first|default=''}"  placeholder="请选择添加时间">			 

          </div>
        <div class="layui-form-mid">—</div>
      	   <div class="layui-input-inline">
      	<input type="text" class="layui-input" id="create_at_last" name="create_at_last" value="{$Think.get.create_at_last|default=''}"  placeholder="请选择添加时间">
      	</div>
      </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>

</fieldset>

<script>form.render()</script>
<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //执行一个laydate实例
  laydate.render({
    elem: '#create_at_first' //指定元素
  });
   laydate.render({
    elem: '#create_at_last' //指定元素
  });
});
</script>
